Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

208
Vistas
I got an error: "TypeError: Cannot read properties of undefined (reading 'on')" when use vuepress to route to sidebar link page

my project used to be running normally,but Recently,after I remove the package-lock.file, rm -rf node_moduiles/ and run npm i again ,even though it's installed correctly,it's running with an error which looks like caused by different vue versions(2.6.11 ~ 2.7.8).

vue.esm.js?a026:5059 [Vue warn]: Error in nextTick: "TypeError: Cannot read properties of undefined (reading 'on')"

found in

---> <RouterLink>
       <Navbar> at node_modules/@vuepress/theme-default/components/Navbar.vue
         <Layout> at node_modules/@vuepress/theme-default/layouts/Layout.vue
           <GlobalLayout> at node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue
             <Root>
warn$2 @ vue.esm.js?a026:5059
vue.esm.js?a026:3732 TypeError: Cannot read properties of undefined (reading 'on')
    at setCurrentInstance (vue.esm.js?a026:564:1)
    at callHook$1 (vue.esm.js?a026:3098:1)
    at Object.insert (vue.esm.js?a026:4877:1)
    at invokeInsertHook (vue.esm.js?a026:6894:1)
    at VueComponent.patch [as __patch__] (vue.esm.js?a026:7105:1)
    at Vue._update (vue.esm.js?a026:2846:1)
    at VueComponent.updateComponent (vue.esm.js?a026:2947:1)
    at Watcher.get (vue.esm.js?a026:4119:1)
    at Watcher.run (vue.esm.js?a026:4195:1)
    at flushSchedulerQueue (vue.esm.js?a026:3193:1)
logError @ vue.esm.js?a026:3732
vue-router.esm.js?8c4f:16 [vue-router] uncaught error during route navigation:
warn @ vue-router.esm.js?8c4f:16
vue-router.esm.js?8c4f:2316 TypeError: Cannot read properties of undefined (reading 'on')
    at setCurrentInstance (vue.esm.js?a026:564:1)
    at callHook$1 (vue.esm.js?a026:3109:1)
    at watcherOptions.onTrigger (vue.esm.js?a026:2959:1)
    at Dep.notify (vue.esm.js?a026:780:1)
    at Vue.reactiveSetter [as _route] (vue.esm.js?a026:1019:1)
    at eval (vue-router.esm.js?8c4f:3003:1)
    at Array.forEach (<anonymous>)
    at HTML5History.eval [as cb] (vue-router.esm.js?8c4f:3002:1)
    at HTML5History.updateRoute (vue-router.esm.js?8c4f:2414:1)
    at eval (vue-router.esm.js?8c4f:2263:1)

Does anyone have a similar problem?

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda